<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>demo</title>
    <script src="../node_modules/vue/dist/vue.js" type="text/javascript" charset="utf-8"></script>
    <style type="text/css">
        #pane{
            width: 200px;
            height: 200px;
            background: skyblue;
        }
    </style>
</head>
<body>
    
    <div id="app">
        <div v-show="isShow" id="pane">
            hello Vue  <!-- 改变display -->
        </div>
        <button @click="showPane">切换显示内容</button>
    </div>

    <script type="text/javascript">
        // console.log(Vue)
        let app = new Vue({
            el:"#app",
            data:{
                isShow:true
            },
            methods:{
                showPane:function(){
                    app.isShow=!app.isShow
                }
            }
        })
    </script>
</body>
</html>